package com.action;

import com.dao.AdminDao;
import com.opensymphony.xwork2.ActionSupport;

public class DeleteUserAction extends ActionSupport{
	private int type;
	private int id;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	public String deleteTUser(){
		AdminDao dao = new AdminDao();
		boolean flag = dao.deletetea(id);
		if(flag){
			return SUCCESS;
		}else {
			
			return INPUT;
		}
		/*if (type==1){
		boolean flag = dao.deletetea(id);
		if (flag){
			return SUCCESS;
		}
		} else if(type==2){
			boolean flag = dao.deletestu(id);	
			if (flag){
				return INPUT;
			}
		}
		return null;
	*/

	}

	public String deleteSUser(){
		AdminDao dao = new AdminDao();
		boolean flag = dao.deletestu(id);
		if(flag){
			return SUCCESS;
		}else {
			
			return INPUT;
		}
	}
	
	
	public int getType() {
		return type;
	}


	public void setType(int type) {
		this.type = type;
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}
}

	
